package com.village.friend.mapper;

import com.village.friend.entity.ChatLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author yl
 * @since 2021-11-22
 */
public interface ChatLogMapper extends BaseMapper<ChatLog> {

    @Select("select count(distinct  recv_id) from  chat_log where send_id=#{sendId} and send_time> concat(date(NOW()) ,' 00:00:00')  ")
    Integer getChatCountToday(Integer sendId);
}
